package com.yuanfeng.action.front.order.dao;

import com.yuanfeng.pojo.Orders;

import java.util.List;
/**
 * 订单dao接口
 * @author yuanfeng
 *
 */
public interface OrderDao {
	/**
	 * 保存订单
	 * @param order
	 */
	public void saveOrder(Orders order);

	/**
	 * 查询订单
	 * @param userId
	 * @return
	 */
	public List<Orders> queryOrders(String userId);

	/**
	 * 查询一张订单
	 * @param order
	 * @return
	 */
	public Orders oneOrder(Orders order);

	/**
	 * 取消订单
	 * @param order
	 */
	public void cancle(Orders order);
}
